package com.sskj.jgxt.jd.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "JD_WenTiLX")
public class WenTiLX extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Boolean checked = false;

	private String text = "";

	private String value = "";

	@JsonIgnore
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "wtId", nullable = true)
	private FoundWT wt;

	/**
	 * @return the wt
	 */
	@JSONField(serialize = false)
	public FoundWT getWt() {
		return wt;
	}

	/**
	 * @param wt
	 *            the wt to set
	 */
	public void setWt(FoundWT wt) {
		this.wt = wt;
	}

	/**
	 * @return the checked
	 */
	public Boolean getChecked() {
		return checked;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param checked
	 *            the checked to set
	 */
	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	/**
	 * @param text
	 *            the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

}
